import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'


import Vant from "vant";
import "vant/lib/index.css";
Vue.use(Vant);

//全局引入vant

import axios from "axios";
Vue.prototype.$axios = axios;
//挂载在原型上的方法能被所有的实例所共享
// $axios被挂载在vue的原型上，之后在任何组件里都能使用axios

import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
Vue.use(ElementUI);
// 完整引入element-ui

import http from "./http/http";
Vue.prototype.$http = http;
//引入封装的http方法 并挂载为全局的方法

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
